![]() |
CUSTOM Windows API 1.14
|
Contains all library APIs. Main file for CuCustomWndAPI library. More...
Functions | |
| CcwResult WINAPI | InitLibrary (CcwLogVerbosity logVerbosityLevel, wchar_t *pstrLogFolder) |
| CcwResult WINAPI | DeInitLibrary () |
| CcwResult WINAPI | CloseDevice (DWORD device) |
| CcwResult WINAPI | CloseAllDevices () |
| CcwResult WINAPI | GetAPIVersion (wchar_t *pAPIVersion) |
| CcwResult WINAPI | GetInfoPrinterId (DWORD device, WORD *pwPrinterID) |
| CcwResult WINAPI | GetInfoFirmwareVersion (DWORD device, wchar_t *pFirmwareVersion) |
| CcwResult WINAPI | GetInfoDeviceModel (DWORD device, wchar_t *pDeviceModel) |
| CcwResult WINAPI | GetCapCommPortType (DWORD device, CommunicationPortType *pcomPortType) |
| CcwResult WINAPI | GetCapPrintAvailable (DWORD device, BOOL *pbPrnAvailable) |
| CcwResult WINAPI | GetCapPrinterResolution (DWORD device, DWORD *pdwPrinterResolution) |
| CcwResult WINAPI | GetCapPrintWidth (DWORD device, DWORD *pdwPageWidth) |
| CcwResult WINAPI | SetCapPrintWidth (DWORD device, DWORD dwNewPrintWidth) |
| CcwResult WINAPI | GetCapCodepagesList (DWORD device, wchar_t *pCodePagesList, DWORD *pdwStringBufferSize) |
| CcwResult WINAPI | SetVirtualPaperEndLimit (DWORD device, DWORD dwVirtualPaperEndLimitCm) |
| CcwResult WINAPI | CommGetReadTimeout (DWORD device, DWORD *pdwRTimeout) |
| CcwResult WINAPI | CommSetReadTimeout (DWORD device, DWORD dwRTimeout) |
| CcwResult WINAPI | CommGetWriteTimeout (DWORD device, DWORD *pdwWTimeout) |
| CcwResult WINAPI | CommSetWriteTimeout (DWORD device, DWORD dwWTimeout) |
| CcwResult WINAPI | CommClearReadBuffer (DWORD device) |
| CcwResult WINAPI | CommClearWriteBuffer (DWORD device) |
| CcwResult WINAPI | CommRead (DWORD device, BYTE *bDataRead, DWORD dwDataReadSize, DWORD *pdwReadDataSize) |
| CcwResult WINAPI | CommWrite (DWORD device, BYTE *bDataToWrite, DWORD dwDataToWriteSize, DWORD *pdwWrittenData) |
| CcwResult WINAPI | TransactionPrint (DWORD device, TrPrintMode tpMode) |
| CcwResult WINAPI | Feed (DWORD device, DWORD dwnFeeds) |
| CcwResult WINAPI | Cut (DWORD device, CutType cuttype) |
| CcwResult WINAPI | OpenCashDrawer (DWORD device, CashDrawerType drawerType, DWORD dwTimeOn, DWORD dwTimeOff) |
| CcwResult WINAPI | Eject (DWORD device, EjectType ejtype) |
| CcwResult WINAPI | EjectWithTimeout (DWORD device, EjectType ejtype, DWORD dwTimeOutms) |
| CcwResult WINAPI | Present (DWORD device, DWORD dwpresentMM) |
| CcwResult WINAPI | Align (DWORD device, PaperAlignType aligntype) |
| CcwResult WINAPI | PrinterIsReady (DWORD device, BOOL *pbReady) |
| CcwResult WINAPI | GetPrinterFullStatus (DWORD device, BYTE *pBuffer, PrinterStatusStruct *pStatusStruct) |
| CcwResult WINAPI | GetInstalledPrinterFullStatus (wchar_t *pstrPrinterName, BYTE *pBuffer, PrinterStatusStruct *pStatusStruct) |
| CcwResult WINAPI | ResetDevice (DWORD device, BOOL bWaitReset) |
| CcwResult WINAPI | DeletePrinterInternalQueue (DWORD device) |
| CcwResult WINAPI | GetCounter (DWORD device, DevCounterType devCounter, DWORD *pdwCounterValue) |
| CcwResult WINAPI | PrintText (DWORD device, wchar_t *pText, BOOL bAddLF) |
| CcwResult WINAPI | PrintTextEx (DWORD device, wchar_t *pText, PrintFontStruct *pfontStruct, BOOL bAddLF) |
| CcwResult WINAPI | PrintTextUTF8 (DWORD device, char *pText, BOOL bAddLF) |
| CcwResult WINAPI | PrintTextUTF8Ex (DWORD device, char *pText, PrintFontStruct *pfontStruct, BOOL bAddLF) |
| CcwResult WINAPI | SetIgnoreWhiteImages (DWORD device, BOOL bIgnore) |
| CcwResult WINAPI | SetGrModeToBlackWhite (DWORD device, ImageGRMode imgGrModeType, BYTE bThreshold) |
| CcwResult WINAPI | SetPageModeToRoll (DWORD device, BOOL bRollMode) |
| CcwResult WINAPI | SetGraphicsTopMargin (DWORD device, DWORD dwTopMargin) |
| CcwResult WINAPI | GetGraphicsTopMargin (DWORD device, DWORD *pdwTopMargin) |
| CcwResult WINAPI | PrintImageFromPath (DWORD device, wchar_t *pstrImageFilePath, PrintImageStruct *pImageStruct) |
| CcwResult WINAPI | PrintRawImage (DWORD device, RAWBitDepth bits, BYTE *pRawBuffer, DWORD dwRawBufferSize, DWORD dwWidth, DWORD dwHeight, PrintImageStruct *pImageStruct) |
| CcwResult WINAPI | PrintBarcodeString (DWORD device, wchar_t *strBrcText, PrintBarcodeStruct *pBarcodeStruct) |
| CcwResult WINAPI | PrintBarcodeBuffer (DWORD device, BYTE *bBrcBuffer, DWORD dwSrcBufferSize, PrintBarcodeStruct *pBarcodeStruct) |
| CcwResult WINAPI | SetVariable (DWORD device, wchar_t *var, void *value) |
| CcwResult WINAPI | GetVariable (DWORD device, wchar_t *var, void *value) |
| CcwResult WINAPI | SetOpenDeviceMode (OpenDeviceMode ode) |
| CcwResult WINAPI | GetOpenDeviceMode (OpenDeviceMode *pode) |
| CcwResult WINAPI | RawDataToPrintSpooler (wchar_t *pstrPrinterName, BYTE *bDataToWrite, DWORD dwDataToWriteSize, wchar_t *strDocName) |
| CcwResult WINAPI | BinFileToPrintSpooler (wchar_t *pstrPrinterName, wchar_t *pstrFilePath, wchar_t *strDocName) |
| CcwResult WINAPI | EnumInstalledPrinters (PrinterStruct *pPrintersArray, LPDWORD pdwNumPrinter) |
| CcwResult WINAPI | OpenInstalledPrinter (wchar_t *pstrPrinterName, DWORD *pdwPrinterDevID) |
| CcwResult WINAPI | EnumUSBDevices (USBDeviceStruct *pUSBDevicesArray, LPDWORD pdwNumDevices) |
| CcwResult WINAPI | OpenPrinterUSB (WORD wVID, WORD wPID, wchar_t *pstrSN, DWORD *pdwPrinterDevID) |
| CcwResult WINAPI | OpenPrinterUSBEx (USBDeviceStruct *pUsbDev, DWORD *pdwPrinterDevID) |
| CcwResult WINAPI | EnumETHDevices (ETHDeviceStruct *pETHDevicesArray, LPDWORD pdwNumDevices, DWORD dwSearchTimeout) |
| CcwResult WINAPI | OpenPrinterETH (wchar_t *strPrinterIPAddress, DWORD dwPrinterIPPort, DWORD *pdwPrinterDevID) |
| CcwResult WINAPI | OpenPrinterETHEx (ETHDeviceStruct *pEthDev, DWORD *pdwPrinterDevID) |
| CcwResult WINAPI | EnumCOMPorts (COMPortStruct *pCOMPortsArray, LPDWORD pdwNumPorts) |
| CcwResult WINAPI | OpenPrinterCOM (wchar_t *strPrinterComPort, DWORD *pdwPrinterDevID) |
| CcwResult WINAPI | OpenPrinterCOMEx (COMPortStruct *pComDev, DWORD *pdwPrinterDevID) |
Contains all library APIs. Main file for CuCustomWndAPI library.
| CcwResult WINAPI Align | ( | DWORD | device, |
| PaperAlignType | aligntype | ||
| ) |
Send align command to the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | aligntype | the PaperAlignType type to send to the device. |
| CcwResult WINAPI BinFileToPrintSpooler | ( | wchar_t * | pstrPrinterName, |
| wchar_t * | pstrFilePath, | ||
| wchar_t * | strDocName | ||
| ) |
Send a binary file into the printer spooler queue
| [in] | pstrPrinterName | A null terminated string that is the installed printer name. |
| [in] | pstrFilePath | A null terminated string with the file name to send to the printer spooler queue. |
| [in] | strDocName | A null terminated string that is the document name (this value will be visible into the spooler queue). |
| CcwResult WINAPI CloseAllDevices | ( | ) |
Close the communication with all the devices.
| CcwResult WINAPI CloseDevice | ( | DWORD | device | ) |
Close the communication with a device.
| [in] | device | The device ID indicating which device the application will close the communications. |
Referenced by CloseAllDevices().
| CcwResult WINAPI CommClearReadBuffer | ( | DWORD | device | ) |
Clean the read buffer of the communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| CcwResult WINAPI CommClearWriteBuffer | ( | DWORD | device | ) |
Clean the write buffer of the communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| CcwResult WINAPI CommGetReadTimeout | ( | DWORD | device, |
| DWORD * | pdwRTimeout | ||
| ) |
Get the read timeout of the communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pdwRTimeout | A pointer to the number that is the read timeout (msec), for the communication port, of this device. |
| CcwResult WINAPI CommGetWriteTimeout | ( | DWORD | device, |
| DWORD * | pdwWTimeout | ||
| ) |
Get the write timeout of the communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pdwWTimeout | A pointer to the number that is the write timeout (msec), for the communication port, of this device. |
| CcwResult WINAPI CommRead | ( | DWORD | device, |
| BYTE * | bDataRead, | ||
| DWORD | dwDataReadSize, | ||
| DWORD * | pdwReadDataSize | ||
| ) |
Direct read from communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | bDataRead | pointer to buffer where received data shall stored |
| [in] | dwDataReadSize | length of reserved buffer |
| [out] | pdwReadDataSize | pointer to value where the number of received bytes is stored |
| CcwResult WINAPI CommSetReadTimeout | ( | DWORD | device, |
| DWORD | dwRTimeout | ||
| ) |
Set the read timeout of the communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | dwRTimeout | the value that will be the new read timeout (msec), for the communication port, of this device. |
| CcwResult WINAPI CommSetWriteTimeout | ( | DWORD | device, |
| DWORD | dwWTimeout | ||
| ) |
Set the write timeout of the communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | dwWTimeout | the value that will be the write timeout (msec), for the communication port, of this device. |
| CcwResult WINAPI CommWrite | ( | DWORD | device, |
| BYTE * | bDataToWrite, | ||
| DWORD | dwDataToWriteSize, | ||
| DWORD * | pdwWrittenData | ||
| ) |
Direct write to communication port of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | bDataToWrite | pointer to buffer to send |
| [in] | dwDataToWriteSize | length of buffer to send |
| [out] | pdwWrittenData | pointer to value where the number of sended bytes is stored |
Send cut command to the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | cuttype | the CutType type to send to the device. |
| CcwResult WINAPI DeInitLibrary | ( | ) |
De-initialize library. Call this function as the last function before your application unloads the library.
| CcwResult WINAPI DeletePrinterInternalQueue | ( | DWORD | device | ) |
Clear / Delete the internal queue of the device.
| [in] | device | The device ID indicating which device the application will communicate to. |
Send the clear
Send eject command to the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | ejtype | the EjectType type to send to the device. |
Send eject with a timeout command to the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | ejtype | the EjectType type to send to the device. |
| [in] | dwTimeOutms | the time in milliseconds after which the movement is performed. |
| CcwResult WINAPI EnumCOMPorts | ( | COMPortStruct * | pCOMPortsArray, |
| LPDWORD | pdwNumPorts | ||
| ) |
Enum the COM Ports found.
| [out] | pCOMPortsArray | the pointer to COMPortStruct array of all the COM ports found. This array must have been allocated by the calling process. |
| [out] | pdwNumPorts | The pointer to the value indicating the number of COM Ports found. |
| CcwResult WINAPI EnumETHDevices | ( | ETHDeviceStruct * | pETHDevicesArray, |
| LPDWORD | pdwNumDevices, | ||
| DWORD | dwSearchTimeout | ||
| ) |
Enum the Ethernet/Wifi devices connected.
| [out] | pETHDevicesArray | the pointer to ETHDeviceStruct array of all the Ethernet/Wifi devices found. This array must have been allocated by the calling process. |
| [out] | pdwNumDevices | The pointer to the value indicating the number of Ethernet/Wifi devices found. |
| [in] | dwSearchTimeout | The timeout to search the ethernet / wifi devices, minimum 300 (ms) |
| CcwResult WINAPI EnumInstalledPrinters | ( | PrinterStruct * | pPrintersArray, |
| LPDWORD | pdwNumPrinter | ||
| ) |
Enum the supported printers installed.
| [out] | pPrintersArray | the pointer to PrinterStruct array of all the supported printers installed. This array must have been allocated by the calling process. |
| [out] | pdwNumPrinter | The pointer to the value indicating the number of supported printers installed. |
| CcwResult WINAPI EnumUSBDevices | ( | USBDeviceStruct * | pUSBDevicesArray, |
| LPDWORD | pdwNumDevices | ||
| ) |
Enum the usb devices connected.
| [out] | pUSBDevicesArray | the pointer to USBDeviceStruct array of all the usb devices found. This array must have been allocated by the calling process. |
| [out] | pdwNumDevices | The pointer to the value indicating the number of usb devices found. |
| CcwResult WINAPI Feed | ( | DWORD | device, |
| DWORD | dwnFeeds | ||
| ) |
Send line feed commands to the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | dwnFeeds | the number of line feed to send to the device. |
| CcwResult WINAPI GetAPIVersion | ( | wchar_t * | pAPIVersion | ) |
Current API version
| [out] | pAPIVersion | A null terminated string containing the library release. This buffer must have been allocated by the calling process. |
| CcwResult WINAPI GetCapCodepagesList | ( | DWORD | device, |
| wchar_t * | pCodePagesList, | ||
| DWORD * | pdwStringBufferSize | ||
| ) |
The list of all the codepages supported by the library / device.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | pCodePagesList | A pointer to the string where will be saved the codepages list string (comma separated). |
| [in] | pdwStringBufferSize | A pointer to the number that is string size. |
| CcwResult WINAPI GetCapCommPortType | ( | DWORD | device, |
| CommunicationPortType * | pcomPortType | ||
| ) |
Get the type of communication port used by the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pcomPortType | A pointer to CommunicationPortType, allocated by the calling process, that contains the communication port type. |
| CcwResult WINAPI GetCapPrintAvailable | ( | DWORD | device, |
| BOOL * | pbPrnAvailable | ||
| ) |
Get if this device supports print functions.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pbPrnAvailable | A pointer to the boolean value to know if this device supports print functions. |
| CcwResult WINAPI GetCapPrinterResolution | ( | DWORD | device, |
| DWORD * | pdwPrinterResolution | ||
| ) |
Get the print resolution of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pdwPrinterResolution | A pointer to the number that is the print resolution. |
| CcwResult WINAPI GetCapPrintWidth | ( | DWORD | device, |
| DWORD * | pdwPageWidth | ||
| ) |
Get the print width of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pdwPageWidth | A pointer to the number that is the print width (dots) of this device. |
| CcwResult WINAPI GetCounter | ( | DWORD | device, |
| DevCounterType | devCounter, | ||
| DWORD * | pdwCounterValue | ||
| ) |
Get a device counter
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | devCounter | The DevCounter that identify the counter to get from the device. |
| [out] | pdwCounterValue | A pointer to a DWORD value with the counter. |
| CcwResult WINAPI GetGraphicsTopMargin | ( | DWORD | device, |
| DWORD * | pdwTopMargin | ||
| ) |
Get the top margin added to the graphics print.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | pdwTopMargin | The fixed top margin (dots) added to every print in graphics mode. |
| CcwResult WINAPI GetInfoDeviceModel | ( | DWORD | device, |
| wchar_t * | pDeviceModel | ||
| ) |
Get the Device Model
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pDeviceModel | A null terminated string containing the Model of this device. This buffer must have been allocated by the calling process. |
| CcwResult WINAPI GetInfoFirmwareVersion | ( | DWORD | device, |
| wchar_t * | pFirmwareVersion | ||
| ) |
Get the Firmware Version
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pFirmwareVersion | A null terminated string containing the Firmware release of this device. This buffer must have been allocated by the calling process. |
| CcwResult WINAPI GetInfoPrinterId | ( | DWORD | device, |
| WORD * | pwPrinterID | ||
| ) |
Get the Printer ID
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pwPrinterID | A WORD that containing the Printer ID. |
| CcwResult WINAPI GetInstalledPrinterFullStatus | ( | wchar_t * | pstrPrinterName, |
| BYTE * | pBuffer, | ||
| PrinterStatusStruct * | pStatusStruct | ||
| ) |
Open the communication port, Get the status of a installed printer and close the communication with the device.
| [in] | pstrPrinterName | A null terminated string that is the installed printer name. |
| [out] | pBuffer | A pointer to 4 bytes buffer, allocated by the calling process, that contains the printer status. |
| [out] | pStatusStruct | A pointer to PrinterStatusStruct, allocated by the calling process, that contains the printer status. |
| CcwResult WINAPI GetOpenDeviceMode | ( | OpenDeviceMode * | pode | ) |
Get the current open mode for the devices
| [in] | pode | pointer to the different way to open the communication channels of the device. |
| CcwResult WINAPI GetPrinterFullStatus | ( | DWORD | device, |
| BYTE * | pBuffer, | ||
| PrinterStatusStruct * | pStatusStruct | ||
| ) |
Get the status of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pBuffer | A pointer to 4 bytes buffer, allocated by the calling process, that contains the printer status. |
| [out] | pStatusStruct | A pointer to PrinterStatusStruct, allocated by the calling process, that contains the printer status. |
| CcwResult WINAPI GetVariable | ( | DWORD | device, |
| wchar_t * | var, | ||
| void * | value | ||
| ) |
Get the value of an internal "parameter"
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | var | A null terminated string that is the variable ID. |
| [out] | value | pointer to the value of the variable. |
| CcwResult WINAPI InitLibrary | ( | CcwLogVerbosity | logVerbosityLevel, |
| wchar_t * | pstrLogFolder | ||
| ) |
Initializes library. This must be the first call after the LoadLibrary.
| [in] | logVerbosityLevel | a CcwLogVerbosity Verbosity level. |
| [in] | pstrLogFolder | Log folder path. If NULL, the library uses the default path: "%Documents and settings%\CUSTOM\CuCustomWndAPI\Log". |
| CcwResult WINAPI OpenCashDrawer | ( | DWORD | device, |
| CashDrawerType | drawerType, | ||
| DWORD | dwTimeOn, | ||
| DWORD | dwTimeOff | ||
| ) |
Generate pulse on the drawer connector
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | drawerType | connector pin type |
| [in] | dwTimeOn | the pulse ON time in milliseconds |
| [in] | dwTimeOff | the pulse OFF time in milliseconds |
| CcwResult WINAPI OpenInstalledPrinter | ( | wchar_t * | pstrPrinterName, |
| DWORD * | pdwPrinterDevID | ||
| ) |
Open the communication with a Installed printer
| [in] | pstrPrinterName | A null terminated string that is the installed printer name. |
| [out] | pdwPrinterDevID | The pointer to the device ID indicating which device the application will communicate to. |
| CcwResult WINAPI OpenPrinterCOM | ( | wchar_t * | strPrinterComPort, |
| DWORD * | pdwPrinterDevID | ||
| ) |
Open the communication with a COM port to printer
| [in] | strPrinterComPort | the string with the COM port to open. |
| [out] | pdwPrinterDevID | The pointer to the device ID indicating which device the application will communicate to. |
| CcwResult WINAPI OpenPrinterCOMEx | ( | COMPortStruct * | pComDev, |
| DWORD * | pdwPrinterDevID | ||
| ) |
Open the communication with a COM port to printer
| [in] | pComDev | the COMPortStruct with all the parameters of the COM Port to open. |
| [out] | pdwPrinterDevID | The pointer to the device ID indicating which device the application will communicate to. |
| CcwResult WINAPI OpenPrinterETH | ( | wchar_t * | strPrinterIPAddress, |
| DWORD | dwPrinterIPPort, | ||
| DWORD * | pdwPrinterDevID | ||
| ) |
Open the communication with a Ethernet / WIFI printer
| [in] | strPrinterIPAddress | the string with the IP Address of the printer to open. |
| [in] | dwPrinterIPPort | the network port to open int the printer. If this value is 0, it is automatically set to the default for the RAW print port (9100) |
| [out] | pdwPrinterDevID | The pointer to the device ID indicating which device the application will communicate to. |
| CcwResult WINAPI OpenPrinterETHEx | ( | ETHDeviceStruct * | pEthDev, |
| DWORD * | pdwPrinterDevID | ||
| ) |
Open the communication with a Ethernet / WIFI printer
| [in] | pEthDev | the ETHDeviceStruct with all the parameters of the ETH/Wifi printer to open. |
| [out] | pdwPrinterDevID | The pointer to the device ID indicating which device the application will communicate to. |
| CcwResult WINAPI OpenPrinterUSB | ( | WORD | wVID, |
| WORD | wPID, | ||
| wchar_t * | pstrSN, | ||
| DWORD * | pdwPrinterDevID | ||
| ) |
Open the communication with a USB printer
| [in] | wVID | the USB Vendor ID of the printer to open. |
| [in] | wPID | the USB Product ID of the printer to open. |
| [in] | pstrSN | the USB Serial Number of the printer to open. |
| [out] | pdwPrinterDevID | The pointer to the device ID indicating which device the application will communicate to. |
| CcwResult WINAPI OpenPrinterUSBEx | ( | USBDeviceStruct * | pUsbDev, |
| DWORD * | pdwPrinterDevID | ||
| ) |
Open the communication with a USB printer
| [in] | pUsbDev | the USBDeviceStruct with all the parameters of the USB printer to open. |
| [out] | pdwPrinterDevID | The pointer to the device ID indicating which device the application will communicate to. |
| CcwResult WINAPI Present | ( | DWORD | device, |
| DWORD | dwpresentMM | ||
| ) |
Send presentation command to the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | dwpresentMM | the value (mm) of the presentation to send to the device. |
| CcwResult WINAPI PrintBarcodeBuffer | ( | DWORD | device, |
| BYTE * | bBrcBuffer, | ||
| DWORD | dwSrcBufferSize, | ||
| PrintBarcodeStruct * | pBarcodeStruct | ||
| ) |
Print barcode file from buffer
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | bBrcBuffer | pointer to buffer to print into barcode |
| [in] | dwSrcBufferSize | length of buffer to print into barcode |
| [in] | pBarcodeStruct | the pointer to PrintBarcodeStruct with all the parameters / Attributes to use to print the barcode. |
| CcwResult WINAPI PrintBarcodeString | ( | DWORD | device, |
| wchar_t * | strBrcText, | ||
| PrintBarcodeStruct * | pBarcodeStruct | ||
| ) |
Print barcode file from String
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | strBrcText | A null terminated string to print into barcode. |
| [in] | pBarcodeStruct | the pointer to PrintBarcodeStruct with all the parameters / Attributes to use to print the barcode. |
| CcwResult WINAPI PrinterIsReady | ( | DWORD | device, |
| BOOL * | pbReady | ||
| ) |
Check if the device is ready
| [in] | device | The device ID indicating which device the application will communicate to. |
| [out] | pbReady | A pointer to a boolean value that is TRUE if the communication with the device is ok. |
| CcwResult WINAPI PrintImageFromPath | ( | DWORD | device, |
| wchar_t * | pstrImageFilePath, | ||
| PrintImageStruct * | pImageStruct | ||
| ) |
Print image file from path.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | pstrImageFilePath | A null terminated string with the file path. |
| [in] | pImageStruct | the pointer to PrintImageStruct with all the parameters / Attributes to use to print the image. |
| CcwResult WINAPI PrintRawImage | ( | DWORD | device, |
| RAWBitDepth | bits, | ||
| BYTE * | pRawBuffer, | ||
| DWORD | dwRawBufferSize, | ||
| DWORD | dwWidth, | ||
| DWORD | dwHeight, | ||
| PrintImageStruct * | pImageStruct | ||
| ) |
Print RAW image buffer.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | bits | bit deph of the RAW data |
| [in] | pRawBuffer | pointer to RAW buffer to print |
| [in] | dwRawBufferSize | length of RAW buffer to print |
| [in] | dwWidth | width (pixels/dots) of the of RAW image |
| [in] | dwHeight | height (pixels/dots) of the of RAW image |
| [in] | pImageStruct | the pointer to PrintImageStruct with all the parameters / Attributes to use to print the image. |
| CcwResult WINAPI PrintText | ( | DWORD | device, |
| wchar_t * | pText, | ||
| BOOL | bAddLF | ||
| ) |
Print text on a printer.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | pText | A null terminated string to print. |
| [in] | bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CcwResult WINAPI PrintTextEx | ( | DWORD | device, |
| wchar_t * | pText, | ||
| PrintFontStruct * | pfontStruct, | ||
| BOOL | bAddLF | ||
| ) |
Print text on a printer (with text parameters / Attributes ).
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | pText | A null terminated string to print. |
| [in] | pfontStruct | The pointer to PrintFontStruct with all the parameters / Attributes to use to print the text. |
| [in] | bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CcwResult WINAPI PrintTextUTF8 | ( | DWORD | device, |
| char * | pText, | ||
| BOOL | bAddLF | ||
| ) |
Print UTF-8 encoded text on a printer.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | pText | A null terminated UTF-8 string to print. |
| [in] | bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CcwResult WINAPI PrintTextUTF8Ex | ( | DWORD | device, |
| char * | pText, | ||
| PrintFontStruct * | pfontStruct, | ||
| BOOL | bAddLF | ||
| ) |
Print UTF-8 encoded text on a printer (with text parameters / Attributes ).
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | pText | A null terminated UTF-8 string to print. |
| [in] | pfontStruct | The pointer to PrintFontStruct with all the parameters / Attributes to use to print the text. |
| [in] | bAddLF | The boolean that is TRUE if must be send a line feed command after the text. |
| CcwResult WINAPI RawDataToPrintSpooler | ( | wchar_t * | pstrPrinterName, |
| BYTE * | bDataToWrite, | ||
| DWORD | dwDataToWriteSize, | ||
| wchar_t * | strDocName | ||
| ) |
Send a buffer into the printer spooler queue
| [in] | pstrPrinterName | A null terminated string that is the installed printer name. |
| [in] | bDataToWrite | pointer to buffer to send to the printer spooler queue |
| [in] | dwDataToWriteSize | length of buffer to send to the printer spooler queue |
| [in] | strDocName | A null terminated string that is the document name (this value will be visible into the spooler queue). |
| CcwResult WINAPI ResetDevice | ( | DWORD | device, |
| BOOL | bWaitReset | ||
| ) |
Reset the device.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | bWaitReset | The boolean that is TRUE if must be wait the reset and the re-open before exit. If bWaitReset is FALSE, must be close and re-open the device communcation before continue. |
| CcwResult WINAPI SetCapPrintWidth | ( | DWORD | device, |
| DWORD | dwNewPrintWidth | ||
| ) |
Set the print width of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | dwNewPrintWidth | The number that will be the print width (dots) of this device. |
| CcwResult WINAPI SetGraphicsTopMargin | ( | DWORD | device, |
| DWORD | dwTopMargin | ||
| ) |
Set the top margin added to the graphics print.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | dwTopMargin | The fixed top margin (dots) added to every print in graphics mode (default is 16). |
| CcwResult WINAPI SetGrModeToBlackWhite | ( | DWORD | device, |
| ImageGRMode | imgGrModeType, | ||
| BYTE | bThreshold | ||
| ) |
Set the graphic conversion mode to Black/White and, if necessary, the threshold
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | imgGrModeType | the ImageGRMode conversion to black / white mode. |
| [in] | bThreshold | the threshold value to use (only for ImageGRMode::IMAGE_GRMODE_THRESHOLD mode). |
| CcwResult WINAPI SetIgnoreWhiteImages | ( | DWORD | device, |
| BOOL | bIgnore | ||
| ) |
Set if ignore, or not, the white Images
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | bIgnore | The boolean that is TRUE when a totally white Image must be ignored and not print (default is FALSE). |
| CcwResult WINAPI SetOpenDeviceMode | ( | OpenDeviceMode | ode | ) |
Set the open mode for the devices
| [in] | ode | The different way to open the communication channels of the device. |
| CcwResult WINAPI SetPageModeToRoll | ( | DWORD | device, |
| BOOL | bRollMode | ||
| ) |
Set the page mode print to Roll mode.
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | bRollMode | The boolean that is TRUE when the printer prints until the last not white line (default is FALSE). |
| CcwResult WINAPI SetVariable | ( | DWORD | device, |
| wchar_t * | var, | ||
| void * | value | ||
| ) |
Set the value of an internal "parameter"
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | var | A null terminated string that is the variable ID. |
| [in] | value | pointer to the value to assign to the variable. |
| CcwResult WINAPI SetVirtualPaperEndLimit | ( | DWORD | device, |
| DWORD | dwVirtualPaperEndLimitCm | ||
| ) |
Set the Virtual Paper End limit of this device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | dwVirtualPaperEndLimitCm | The number that will be the virtual paper end limit, expressed in cm, of this device (for e.g. "1500" is to set 15m) |
| CcwResult WINAPI TransactionPrint | ( | DWORD | device, |
| TrPrintMode | tpMode | ||
| ) |
Manage the Transaction Print of the device
| [in] | device | The device ID indicating which device the application will communicate to. |
| [in] | tpMode | Transaction control. |